﻿using System;
using System.Windows.Input;
using Cirrious.MvvmCross.Commands;
using Conference.Core.BL.Entities;
using Conference.Core.UX.Models;
using TeaLightV5.Foundation.UX.ViewModels;

namespace Conference.Core.UX.ViewModels
{
    public class SpeakerReadEntityViewModel
        : ReadEntityViewModel<SpeakerModel, SpeakerEntity>
    {
        public SpeakerReadEntityViewModel()
            : base(null)
        {

        }

        public SpeakerReadEntityViewModel(SpeakerModelParameters parameters)
            : base(parameters)
        {
            
        }

        public override ICommand ReadCommand
        {
            get
            {
                return new MvxRelayCommand(() => RequestNavigate<SpeakerReadEntityViewModel>(new SpeakerModelParameters() { Id = Data.Id }));
            }
        }

        public override ICommand EditCommand
        {
            get
            {
                return new MvxRelayCommand(() => RequestNavigate<SpeakerUpdateEntityViewModel>(new SpeakerModelParameters() { Id = Data.Id }));
            }
        }

  
    }
}
